﻿/**********************************天使物流*******************************************
* 功能描述:系统设置——部门管理——接口
* 作者:孟帅龙
* 时间:2022/1/10
* 
**********************************天使物流*******************************************/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TianShiProject.Models.Common;

namespace TianShiProject.Models.System.Departments
{
    public interface IDepartmentRepository
    {
        /// <summary>
        /// 部门管理——查询分页显示
        /// </summary>
        /// <param name="DeptName"></param>
        /// <param name="pageindex"></param>
        /// <param name="pagesize"></param>
        /// <returns></returns>
        Task<PageResponse<DepartmentDto>> GetDepartmentPageShow(string DeptName, int pageindex = 1, int pagesize = 3);
        /// <summary>
        /// 部门管理——逻辑删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<PageResponse<DepartmentDto>> DeleteDepartment(int id);
        /// <summary>
        /// 部门管理——批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        Task<PageResponse<DepartmentDto>> DeleteBatchDepartment(string ids);
        /// <summary>
        /// 部门管理——编辑
        /// </summary>
        /// <param name="departmentDto"></param>
        /// <returns></returns>
        Task<int> PostUpdateDepartment(DepartmentDto departmentDto);
        /// <summary>
        /// 部门管理——添加
        /// </summary>
        /// <param name="rolesDto"></param>
        /// <returns></returns>
        Task<int> PostAddDepartment(DepartmentDto departmentDto);
        /// <summary>
        /// 部门下拉框
        /// </summary>
        /// <returns></returns>
        Task<PageResponse<DepartmentDto>> GetDept();
    }
}
